package org.cyzy.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.cyzy.entity.ClassUser;
import org.cyzy.entity.CreateClass;

import java.util.List;

@Mapper
public interface ClassMapper {

    //插入班级信息
    int insertClass(CreateClass createClass);

    //查询班级码，避免重复
    Integer selectClassCode(String classCode);

  //添加用户
    int insertClassUser(ClassUser classUser);

    //根据教师id查询班级
    List<CreateClass> selectClassInTeacherid(String teacherId);


}
